<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>管理后台-沽海</title>
    <meta name="keywords" content="沽海交易" />
    <meta name="description" content="沽海交易" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <link href="{$Think.config.DOMAIN_URL}/Public/AdminTpl/css/bootstrap.min.css" rel="stylesheet" />
    <link rel="stylesheet" href="{$Think.config.DOMAIN_URL}/Public/AdminTpl/css/font-awesome.min.css" />
    <link rel="stylesheet" href="{$Think.config.DOMAIN_URL}/Public/AdminTpl/css/ace.min.css" />
    <link rel="stylesheet" href="{$Think.config.DOMAIN_URL}/Public/AdminTpl/css/my-style.css">
    <link rel="stylesheet" href="{$Think.config.DOMAIN_URL}/Public/AdminTpl/css/business.css">
    <link rel="stylesheet" href="{$Think.config.DOMAIN_URL}/Public/AdminTpl/css/s-settle.css">
    <link rel="stylesheet" href="/Public/AdminTpl/css/common.css?v=323">
    <script>
        const FILE_UPLOAD_URL = '{$Think.config.FILE_UPLOAD_SERVE}';
    </script>
    <script src="{$Think.config.DOMAIN_URL}/Public/AdminTpl/js/jquery-2.1.1.min.js"></script>
    <!--[if IE]>
    <script src="{$Think.config.DOMAIN_URL}/Public/AdminTpl/js/jquery-1.11.1.min.js"></script>
    <![endif]-->
    <script src="{$Think.config.DOMAIN_URL}/Public/AdminTpl/js/bootstrap.min.js"></script>
    <script src="{$Think.config.DOMAIN_URL}/Public/AdminTpl/js/laydate.js"></script>
    <script src="{$Think.config.DOMAIN_URL}/Public/AdminTpl/js/popup.js"></script>
    <script src="{$Think.config.DOMAIN_URL}/Public/AdminTpl/js/Validform_v5.3.2_min.js"></script>
</head>

<body class="skin-1">
<div class="navbar navbar-default" id="navbar">
    <div class="navbar-container" id="navbar-container">
        <!--头部左边logo图标-->
        <div class="navbar-header pull-left">
            <a class="navbar-brand" href="/">
                <img src="{$Think.config.DOMAIN_URL}/Public/AdminTpl/img/logo-bak.png" class="logo-img">
            </a>
            <nav role="navigation" class="pull-left">
                <h3 class="color-gray9 head-title">沽海交易管理后台</h3>
            </nav>
        </div>
        <!--头部右边列表-->
        <div class="navbar-header pull-right" role="navigation">
            <ul class="nav ace-nav">
                <li>
                    <img class="nav-user-photo" src="{$Think.session.JSADMIN_USERDATA.avatar}"/>
                </li>
                <li>
                    <a class="flush" style="cursor: pointer;color: #d55b52">您好：{$Think.session.JSADMIN_USERDATA.uname}</a>
                </li>
                <li>
                    <a class="flush" onclick="location.reload()" style="cursor: pointer;">刷新</a>
                </li>
                <li>
                    <a href="{$Think.config.DOMAIN_URL}/login/logout">退出</a>
                </li>
            </ul>
        </div>
    </div>
</div>

<!-- main container 页面主体容器 -->
<div class="main-container" id="main-container">
    <!--页面容器-->
    <div class="main-container-inner">

        <!-- 侧边栏区块 -->
        <div class="sidebar" id="sidebar">
            <!-- 侧边栏导航条 -->
            <ul class="nav nav-list">
                <volist  name="leftMenu" id="oMenu">
                    <eq name="oMenu.active" value="1">
                        <empty name="oMenu.child">
                            <li class="active">
                        <else/>
                            <li class="active open">
                        </empty>
                    <else />
                        <li>
                    </eq>

                    <empty name="oMenu.child">
                        <a href="{$Think.config.DOMAIN_URL}/{$oMenu.url}">
                    <else/>
                        <a class="dropdown-toggle">
                    </empty>
                            <i class="menu-icon fa {$oMenu.class}"></i>
                            <span class="menu-text"> {$oMenu.name} </span>
                            <notempty name="oMenu.child">
                                <b class="arrow fa fa-angle-down"></b>
                            </notempty>
                        </a>

                        <notempty name="oMenu.child">
                            <ul class="submenu">
                                <volist  name="oMenu['child']" id="tMenu">
                                    <eq name="tMenu.ismenu" value = "1">
                                        <eq name="tMenu.active" value="1">
                                            <li class="active">
                                        <else />
                                            <li>
                                        </eq>
                                        <a href="{$Think.config.DOMAIN_URL}/{$tMenu.url}">{$tMenu.name}</a></li>
                                    </eq>
                                </volist>
                            </ul>
                        </notempty>
                    </li>
                </volist>
            </ul>
        </div>

        <!-- 页面内容区块 -->
        <block name="pageContent"></block>
    </div>
</div>
</body>


<script src="{$Think.config.DOMAIN_URL}/Public/AdminTpl/js/ace.min.js"></script>
<script src="{$Think.config.DOMAIN_URL}/Public/AdminTpl/js/ace-elements.min.js"></script>
<script src="{$Think.config.DOMAIN_URL}/Public/AdminTpl/layer/layer.js"></script>
<script>
    layer.config({
        offset: 't'
    });
    var urlArgs = GetUrlParms();
    function GetUrlParms() {
        var args=new Object();
        var query=location.search.substring(1);
        var pairs=query.split("&");
        for(var i=0;i<pairs.length;i++){
            var pos=pairs[i].indexOf('=');
            if(pos==-1)   continue;
            var argname=pairs[i].substring(0,pos);
            var value=pairs[i].substring(pos+1);
            args[argname]=unescape(value);
        }
        return args;
    }
    var tip = urlArgs['tip'];
    var errmsg =  decodeURI(urlArgs['errmsg']);
    if(tip==1){
        layer.msg('操作成功！', {icon: 6,time: 1500});
    }else if(tip==2){
        errmsg = errmsg ? errmsg : '操作失败！';
        layer.msg(errmsg, {icon: 5,time: 1500});
    }
    function locationTo(url){
        location.href = url;
    }
</script>
</html>